<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 选择器的权重 */
        /* id:权重值100 */
        /* class 权重为10 */
        /* 标签的权重为1 */
        #box1{
            color: chartreuse;
        }
        
         .container .box{
            color: blue;
        }

        .box{
            color: red;
        }
       
    </style>
</head>
<body>
    <div class="container">
        <div class="box" id="box1">
            1233456ty
        </div>
    </div>
</body>
</html>